package me.zhengjie.s7;

import com.github.xingshuangs.iot.protocol.common.enums.EDataType;
import com.github.xingshuangs.iot.protocol.s7.serializer.S7Variable;
import lombok.Data;
import org.springframework.stereotype.Repository;

@Data
public class LargeBean {
    /** 任务号 */
    @S7Variable(address = "DB11.0", type = EDataType.UINT32)
    private Long taskNo;

    /** 任务类型 */
    @S7Variable(address = "DB11.4", type = EDataType.INT16)
    private short taskType;

    /** 堆垛机取货排  1=左1深位  2=右1深位  3=左2深位  4=右2深位 */
    @S7Variable(address = "DB11.14", type = EDataType.INT16)
    private short downZ;

    /** 堆垛机取货列 */
    @S7Variable(address = "DB11.16", type = EDataType.INT16)
    private short downX;

    /** 堆垛机取货层 */
    @S7Variable(address = "DB11.18", type = EDataType.INT16)
    private short downY;

    /** 堆垛机卸货排  1=左1深位  2=右1深位  3=左2深位  4=右2深位 */
    @S7Variable(address = "DB11.20", type = EDataType.INT16)
    private short upZ;

    /** 堆垛机取货列 */
    @S7Variable(address = "DB11.22", type = EDataType.INT16)
    private short upX;

    /** 堆垛机取货层 */
    @S7Variable(address = "DB11.24", type = EDataType.INT16)
    private short upY;

    /** 可以出叉  1=可以出叉（出叉复位） */
    @S7Variable(address = "DB11.40", type = EDataType.INT16)
    private short readyToFork;

    /** 系统急停 */
    @S7Variable(address = "DB11.42", type = EDataType.INT16)
    private short stop;


}
